home *** CD-ROM | disk | FTP | other *** search
- Iff2Obj-Documention
-
- Introduction:
- Iff2Obj enables you to create linkable files out of binary files or out of
- IFF-files. This is useful because the available C-compilers cannot convert
- huge amounts of ULONG []={ _much_ data } :-(
-
- Requirements:
- AmigaOS2.0 and the iff.library
-
- Gadgets:
- - LoadBin
- Loads a binary file to memory. The data will not be modified in any way
- - LoadIff
- Loads an IFF-picture to memory. A BitMap-structure is generated and
- filled with information about width, height, depth and pointers
- to the single bitplanes.
- - SaveBin
- Saves a linkable object-file with your binary data
- - SaveIff
- Saves a linkable object-file with at least the bitplane-data of your
- IFF-file. If you selected the CMAP-gadget and/or BitMap-gadget then
- these information are also included in your object-file
- - CHIPMEM
- When selected your data-hunk will get the MEMF_CHIP flag.
- This only affects your data in case of SaveBin or your bitplanes in case
- of SaveIff. CMAP and BitMap information are never put to chipmem !
- - CMAP
- The colormap of your picture is added to the object-file
- - BitMap
- A complete BitMap-struct with information about your picture is added.
- This is a proper way to access your bitplanes i think.
- - Label
- Specify a label with which you can access the data in the object-file
- from your sourcecode.
- 'label':
- at this address you find the begin of your data or the begin
- of the first bitplane.
- 'label'_bm:
- here is your BitMap-struct if you saved with SaveIff
- width, height, depth and pointers to your bitplanes are initialised.
- 'label'_cmap:
- here is the colormap as USHORT[]. You have to determine the number
- from 'label'_bm.
-
- Example:
- as 'label' choose mypic
- the object-file is named mypicture.o
- CMAP and BitMap and CHIPMEM were chosen.
-
- The sourcecode (using C) should look somewhat like:
- extern UBYTE mypic[];
- extern struct BitMap mypic_bm;
- extern USHORT mypic_cmap[];
-
-
- Author: Michael Krause
- Email: imkrause@techfak.uni-bielefeld.de
-
- Distribution:
- This program is Public Domain.
- Do with it whatever you like !
- I am not responsible for any damage this program may cause.
-
- This program makes use of:
- - Christian A. Weber's iff.library
- - Jan van den Baard's GadToolsBox
- Thanks to these authors for their fine programs !
-
- Without these development-tools this program would have my own hack-like
- assembler-iff-loader which is for sure unable to load some strange IFF-pictures,
- a cli-interface instead of a GUI and so on.
-
- Further thanks go to:
- Markus Illenseer for the information about the C-Compiler unability to convert
- large amounts of data
- Matt Dillon for DICE
- and all the PD/Shareware-authors who make the Amiga superior to all other
- 'homecomputers' ;-)
-
-